package org.termine.jsf;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;

@ManagedBean
@SessionScoped
public class MenuJSF extends BaseJSF implements Serializable {

	private static final long serialVersionUID = -692768916672984259L;
	
	@ManagedProperty(value = "#{loginJSF}")
	private LoginJSF loginJSF;

	/*
	 * Jsf Action Methods
	 */
	public String gotoAppointment() {
		return "SUCCESS";
	}

	public String switchToClientPerspective() {
		getLoginJSF().setWhoAmI("CLIENT");
		return "SUCCESS";
	}

	public String switchToProviderPerspective() {
		getLoginJSF().setWhoAmI("PROVIDER");
		return "SUCCESS";
	}

	public String gotoClientCalendar() {
		return "SUCCESS";
	}

	public String gotoProviderCalendar() {
		return "SUCCESS";
	}

	public String gotoServiceOverview() {
		return "SUCCESS";
	}

	public String gotoAvailabilityOverview() {
		return "SUCCESS";
	}

	public String gotoPersonalData() {
		return "SUCCESS";
	}
	
	/*
	 * Getters & Setters
	 */
	public LoginJSF getLoginJSF() {
		return loginJSF;
	}

	public void setLoginJSF(LoginJSF loginJSF) {
		this.loginJSF = loginJSF;
	}
}
